obj-m:=sockopt.o
TARGET = sockopt
CURRENT_PATH:=$(shell pwd)
VERSION_NUM:=$(shell uname -r)
LINUX_PATH:=/lib/modules/$(VERSION_NUM)/build

all :
	make -C $(LINUX_PATH) M=$(CURRENT_PATH) modules

insmod:
	insmod $(TARGET).ko
rmmod:
	rmmod $(TARGET).ko
 
clean:
	-rm -rf *.o *.ko .$(TARGET).ko.cmd .*.flags *.mod.c modules.order  Module.symvers .tmp_versions
	-rm -rf protocol/*.o protocol/.*.o.cmd *.markers 
	-rm -rf user

